import java.util.*;
public class Doctor extends Person  {
	private List<Patient> patients;
	

	public Doctor(){
		patients = new ArrayList<Patient>(); 
		System.out.println("Doctor");
	}
	public Doctor(Person person){
		this.setName(person.getName());
		patients = new ArrayList<Patient>(); 
		System.out.println("Doctor");
	}

	List<Patient> getPatients(){
		return this.patients;
	}
	void addPatient(Patient patient){
		
		patients.add(patient);
	}
	void removePatient(int index){
		
		patients.remove(index);
	}
	
	

}